package com.iyundao.io.mapper;

import com.iyundao.io.model.PartyMemberOrganization;

import static org.apache.ibatis.jdbc.SqlBuilder.*;

public class PartyMemberOrganizationSqlProvider {

    public String insertSelective(PartyMemberOrganization record) {
        BEGIN();
        INSERT_INTO("partymemberorganization");
        
        if (record.getId() != null) {
            VALUES("id", "#{id,jdbcType=INTEGER}");
        }
        
        if (record.getPartymemberid() != null) {
            VALUES("partymemberid", "#{partymemberid,jdbcType=INTEGER}");
        }
        
        if (record.getOrganizationid() != null) {
            VALUES("organizationid", "#{organizationid,jdbcType=VARCHAR}");
        }
        
        if (record.getJointime() != null) {
            VALUES("jointime", "#{jointime,jdbcType=DATE}");
        }
        
        if (record.getOuttime() != null) {
            VALUES("outtime", "#{outtime,jdbcType=DATE}");
        }
        
        return SQL();
    }
}